createMouseEvent

public abstract MouseEvent createMouseEvent(EventType eventType, MouseEventParams params)

Creates and returns a new MouseEvent object with the given eventType and params.

Return

a new MouseEvent object

Parameters

eventType

an EventType object representing a type of a valid DOM event supported by engine

params

an MouseEventParams object representing mouse event properties

Throws

if the event creation failed due to the invalid event params

when the document is closed